<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>问题列表</title>
		<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, maximum-scale=1.0, user-scalable=no" />
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<link rel="stylesheet" type="text/css" href="../../css/mui.min.css" />
		<style>
			*{
				padding: 0px;
				margin: 0px;
				border: 0px;
				font-family: "微软雅黑";
			}
		</style>
	</head>

	<body style="background-color: white;">
		<div class="mui-content" style="background-color: white;">
			<div>
				<div id="dv-pro-lst" style="width: 100%; ">
					<!--
                        	作者：xuzhao_deng@sina.com
                        	时间：2016-12-09
                        	描述：家长问题列表
                        -->
                        <!--<div style="display: flex; margin: 10px 5px 10px 4px;">
                        	<div style="margin: 2px 5px 2px 5px; float: left;">
                        		<img src="../../img/1-13092PQ63K52.jpg" height="80" width="80" />
                        	</div>
                        	<div style="float: right; margin: 2px 0px 2px 10px; width: 80%;">
                        		<div style="color: #303030; font-size: 16px; width: 100%;">孩子不吃饭就该打一顿</div>
                        		<div style="margin-top: 30px; color: #303030; font-size: 14px; width: 100%;">
                        			<span style="float: left;"><img src="../../img/jzkt/yanjing_03.png" width="16"/>&nbsp;100</span>
                        			<span style="float: right; margin-right: 20px;">评论量：100</span>
                        		</div>
                        	</div>
                        </div>
                        <hr style="width: 100%; background-color: #DCDCDC; height: 1px;" />
                        
                        
                        <div style="display: flex; margin: 10px 5px 10px 4px;">
                        	<div style="margin: 2px 5px 2px 5px; float: left;">
                        		<img src="../../img/1-13092PQ63K52.jpg" height="80" width="80" />
                        	</div>
                        	<div style="float: right; margin: 2px 0px 2px 10px; width: 80%;">
                        		<div style="color: #303030; font-size: 16px; width: 100%;">孩子不吃饭就该打一顿sdfsf</div>
                        		<div style="margin-top: 30px; color: #303030; font-size: 14px; width: 100%;">
                        			<span style="float: left;"><img src="../../img/jzkt/yanjing_03.png" width="16"/>&nbsp;100</span>
                        			<span style="float: right; margin-right: 20px;"><img src="../../img/comm.png" width="16" height="14"/>&nbsp;100</span>
                        		</div>
                        	</div>
                        </div>
                        <hr style="width: 100%; background-color: #DCDCDC; height: 1px;" />
                       -->
                        
                        
                        
					<div id="prolst-tem" >
						
					</div>
				</div>

			</div>
		</div>
	</body>
	<script src="../../js/mui.min.js"></script>
	<script src="../../js/utils/http.utils.js"></script>
	<script>
		var $wxfwid = localStorage.getItem("wxfwid");
		var $pcode = fun_getUrlForParams(window.location.href, "bpcode");
		window.onload = function(){
			mui.ajax({
				url : $request_url.getComProLst,
				type : "get",
				headers: {
					"Authorization": $headers_authorization
				},
				data : {
					orgId : $wxfwid,
					typeCode : $pcode,
					rows : 30,
					page : 0
				},
				dataType : "json",
				success : function(dat){
					if(dat.code == 0){
						console.log(dat.result);
						var $cpTem = document.getElementById("prolst-tem");
						var $cpLsts = dat.result
						for(var i = 0; i < $cpLsts.length; i++ ){
							var $cpLi = document.createElement('div');
							$cpLi.innerHTML = fun_proLstTem($cpLsts[i], i);
							$cpTem.appendChild($cpLi);
						}
					}
				}, error : function(err){
					
				}
			}); 
		}
		
		function fun_proLstTem($proInfo, $num){ 
			var $proTem = 
			  '<a href="comProDetailed.html?proid='+ $proInfo.id +'"><div style="display: flex; margin: 10px 5px 10px 4px;">'
            +   	'<div style="margin: 2px 5px 2px 5px; float: left;">'
            +    		'<img src="'+ $proInfo.thumbnail +'" height="80" width="80" />'
            +    	'</div>'
            +    	'<div style="float: right; margin: 2px 0px 2px 10px; width: 80%;">'
            +    		'<div style="color: #303030; font-size: 16px; width: 100%;">'+ $proInfo.title +'</div>'
            +    		'<div style="display: block; margin-top: 30px; color: #303030; font-size: 14px; width: 100%;">'
            +    			'<span style="float: left;"><img src="../../img/jzkt/yanjing_03.png" width="16"/>&nbsp;'+ $proInfo.readCount +'</span>'
            +   			'<span style="float: right; margin-right: 20px;"><img src="../../img/comm.png" width="16" height="14"/>&nbsp;'+ $proInfo.commentInfo.commentNum +'</span>'
            +    		'</div>'
            +    	'</div>'
            +    '</div></a><hr style="width: 100%; background-color: #DCDCDC; height: 1px;" />';
				return $proTem;
		}
	</script>

</html>